SAVE OBJECT

This command will save the specified object to a file in the DBO file format.

  Syntax
SAVE OBJECT Filename, Object Number
  Parameters
Filename
String
This file name string that will be used to save the specified object to a file in the DBO file format. Be sure to end the specified filename with .DBO so that the file can be loaded in again correctly
Object Number
Integer
The object number

  Returns

This command does not return a value.

  Description

Be sure to end the specified filename with .DBO so that the file can be loaded in again correctly. It is worth noting that before saving, the vertex data is restored to the last god copy before animation changed the data, so that the model can be saved out correctly. Unless you used the special mode 2 for the "lock vertexdata for limb" command, any changes with this command will not appear.

  Example Code
hide mouse:cls 0
ObjectNumber=1
SecondObject=2
make object cone ObjectNumber,10
xrotate object ObjectNumber,90
fix object pivot ObjectNumber
color object ObjectNumber,rgb(0,255,0)
position object ObjectNumber, 0,0,0
instance object SecondObject,ObjectNumber
color object SecondObject,rgb(255,0,0)
position object SecondObject,25,0,25
if file exist("mynewobject.dbo")=1 then delete file "mynewobject.dbo"
save object "mynewobject.dbo",SecondObject
delete object ObjectNumber
delete object SecondObject
end
  See also

BASIC3D Commands Menu
Index